package com.ksd.control;

import com.ksd.control.result.BaseResult;
import com.ksd.control.result.ResultParam;
import org.springframework.stereotype.Controller;

@Controller
public class LogoutAction extends BaseAction {
    @Override
    public String execute() throws Exception {
        if (map.containsKey("user")) {
            map.remove("user");
            setResult(new BaseResult().setResult(ResultParam.SUCCESS));
        }
        return SUCCESS;
    }
}
